<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package keyson
 */

get_header(); ?>

<div class="box content">
	<div class="container">	
		<section class="twelve columns">
			<div class="breadcrumb"><?php if ( function_exists('yoast_breadcrumb') ) {	yoast_breadcrumb('<p id="breadcrumbs">','</p>');} ?></div>
			<div class="row group">
				<div id="content" class="site-content">
					
					<div id="primary" class="content-area">
							<main id="main" class="site-main" role="main">

								<?php while ( have_posts() ) : the_post(); ?>

									<?php get_template_part( 'content', 'page' ); ?>

									<?php
										// If comments are open or we have at least one comment, load up the comment template
										//if ( comments_open() || '0' != get_comments_number() )
											//comments_template();
									?>

								<?php endwhile; // end of the loop. ?>

							</main><!-- #main -->
						</div><!-- #primary -->
					
				</div>
			</div>
		</section>
		<section class="twelve columns">
			<div class="row group contact">
				<div class="eight columns alpha">
					<?php
					global $smof_data;
					$setup = $smof_data['switch_slider'];
					if($setup != 0)
					{
					?>
					<div class="detail-contact">
						<div class="iconIMG"><img src="<?php bloginfo ('template_url'); ?>/images/building.png" alt="building" /></div>
						<div class="address"><p>Address: <br/>
						<?php 
							global $smof_data;
				  	
							$logo = $smof_data['address'];
							echo $logo;
						?></p></div>
					</div>
					<?php } ?>
					<div class="detail-contact">
						<div class="iconIMG"><img src="<?php bloginfo ('template_url'); ?>/images/phone.png" alt="building" /></div>
						<div class="phone"><p>Phone: <br/>
						<?php 
							global $smof_data;
				  	
							$logo = $smof_data['phone'];
							echo $logo;
						?></p></div>
					</div>
					<div class="detail-contact">
						<div class="iconIMG"><img src="<?php bloginfo ('template_url'); ?>/images/email.png" alt="building" /></div>
						<div class="email"><p>Email: <br/>
						<?php 
							global $smof_data;
				  	
							$logo = $smof_data['email'];
							echo $logo;
						?></p></div>
					</div>
				</div>
				<div class="four columns omega" style="text-align:right;">
					<?php
					global $smof_data;	
					$fb = $smof_data['text_facebook'];
					$twitter = $smof_data['text_twitter'];
					$linkedin = $smof_data['text_linkedin'];
					$google = $smof_data['text_google'];
					?>
					
					<a href="<?php echo $fb ?>" class="social facebook"></a>
					<a href="<?php echo $twitter ?>" class="social twitter"></a>
					<a href="<?php echo $google ?>" class="social gplus"></a>
					<a href="<?php echo $linkedin ?>" class="social linkedln"></a>
					
				</div>
			</div>
		</section><div class="clear"></div>	
	</div><div class="clear"></div>
</div>	
<?php get_footer(); ?>